code:
var WSH = new ActiveXObject('WScript.Shell');
var App_Name = WSH.RegRead("HKEY_CURRENT_USER\\Software\\Microsoft\\Keyboard\\Native Media Players\\WMP\\AppName");
Debug.Trace(App_Name);
This will also return the AppName into the script debugging window for you too. Make sure you always use \\ and not just \ because this is the way JScript has to have it.