SQL 2000 code to Get CD KEY Value:

USE master
EXEC xp_regread ‘HKEY_LOCAL_MACHINE’,
‘SOFTWAREMicrosoftMicrosoft SQL Server80registration’,
‘CD_KEY’