Windows 7 and 8.1 can still be upgraded to Windows 10 for free.
Once a computer has been upgraded licensing data is on Microsoft servers.
This enables a clean install, drive replacement, and major hardware replacement.
If you want to record product keys then run:
Showkey
https://www.tenforums.com/windows-updates-activation/69647-activation-troubleshooting.html
or
Belarc Advisor
https://www.belarc.com/products/belarc-advisor
Command line to view the original product key:
wmic path softwarelicensingservice get OA3xOriginalProductKey
.
.
.
.
.
Please remember to vote and to mark the replies as answers if they help.
On the bottom of each post there is:
Propose as answer = answered the question
On the left side of each post there is /\ with a number: click = a helpful post
.
.
.
.
.