Multimedia Key Binding
You might want to look at the code for KeyRemap4MacBook.  There is functionality in there for remapping these keys to whatever you like, I'm not sure however if it would become clear how to "register" those keys.