If you upgrade to Windows 10 using a retail copy of, say, Windows 7, 8, or 8.1, then you’ll be able to transfer the Windows 10 key from your laptop to your desktop. However, it’s important to note that activation greatly hinges on the type of Windows licenses you have.
You can use your laptop Windows 10 Key for your desktop if you’re using a retail copy or upgraded from Windows 8 or 7. Can I Use My Laptop Windows 10 Key for My Desktop?