Da command line, basta digitare:

wmic path SoftwareLicensingService get OA3xOriginalProductKey