Is there any way to get the status of the NumLock key?

When I want to use the sendkeys command with an ip address for example, it reacts exactly like if the keys are hits from the keyboard (depending of the NumLock status)

example :
with numlock off - the screen result of SENDKEYS ('\\123.456.789.012') is \\123.456.789.012
with numlock on - the screen result of SENDKEYS ('\\123.456.789.012') is \\&é".'(-.è_ç.à&é (using a french keyboard)

To avoid this kind of trouble I need to known the ACTUAL status of numlock before using SENDKEYS('{NUMLOCK}') if needed.

How can I check this ?
_________________________
Comments always welcome. French native so I apologize for my (mis)use of English!