It depends on the version of Windows, but for those that have it, try
looking at the registry key:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion and look at the
value assigned to ProductKey. If you don't have that value in the registry,
then as far as I know there is no way to recover the Product key used to
install the machine.
(Windows XP comes to mind here)