Language Issues When Using Apple Keyboards with Windows Machines
MacOS and Windows keyboard layouts for various languages are often different, so that the output on a Windows machine will not match what is printed on the keys of the Apple keyboard.
To make them match, you may need to install an additional keyboard layout in the Windows machine. A useful source for a number of these already made is at this page.
For Arabic, try this one.
Here is an app you can use to make custom Windows keyboard layouts.