To retrive the windows product key you can run this within a windows power shell:

PS C:\Users\Monkey> (Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey
xxxxx-xxxxx-xxxxx-xxxxx-xxxxx