ere’s different ways to do it, but probably the quickest and easiest way is with Nirsoft’s ProduKey:
Download, extract, and run the program (it will show your own key by default)
Press F9 to bring up the Select Source dialog
Select Load the product keys from external Software Registry hive
Browse to the SOFTWARE registry hive. For example, if you have the drive from the other system mounted as drive Z:, then you would probably select Z:\Windows\System32\Config\SOFTWARE
Click [OK]