* Start by deleting the Keys under HKEY_CURRENT_USER\Software\Samsung\Kies\DeviceDB\
* Start Kies.
* Reconnect the phone, using the stock TouchWiz launcher. The register keys will be recreated from your phones data as it connects.
* Pick the top key under DeviceDB and look at the contents of the strings HIDSWVER and ProductCode.