I'm not sure if this works in XP but in all previous versions of Windows, you can read the product code from the registry of the PC. Select run, type regedit, when regedit opens, select hkey_local_machine, then software, then Microsoft, then Windows, then current version and you should be able to find all the codes you need.