Hello,
The Windows system versions will have different product keys differed by versions, the windows 7 product key cannot be upgraded to windows 10, so I'm afraid you will need to get a new product key to activate the windows 10 system.
Here is some explanation about windows activation:Activate Windows - Microsoft Support
If you don't have a digital license or a product key, you can purchase a Windows 10 digital license after installation finishes. Here's how:
Select the Start button.
Select Settings > Update & Security > Activation .
Select Go to Store .
This opens the Microsoft Store app where you can purchase a Windows 10 digital license.