Magic Keyboard on Windows - How to get Media keys to work
I would assume the media keys on the Magic Keyboard would work with Windows 10, if the following were true.

The Boot Camp Assistant was used to install Windows 10.

The model Mac is listed under Compatibility at the Apple Magic Keyboard website.

Under Windows settings, the Apple keyboard is chosen as the current input method. See image below.