Windows Power Shell
(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey