The following key codes can be used to re-define the media keys on your keyboard by editing the registry.
The registry key is "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\n\", where n is the button number.
Here are the ones I've found through experimentation.