If you linked your license to your Microsoft account before the old PC died:
Go to: https://account.microsoft.com/devices
Look for your old PC.
If it's listed, there may be a Windows license linked to your account.
Sign into the new PC using the same Microsoft account.
Go to Settings > System > Activation > and try “Troubleshoot” to re-activate Windows using your account’s digital license.
- You will likely need to purchase a new license unless Microsoft Support can help recover it. Contact Microsoft Support