The cd key is always stored in the registry
you can always get it from there if you forgot to keep it in a safe place.
go for HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion
and in the right pane there is a string named "ProductKey" which has the key.
This is for win98 but its the same for every flavour anyway...