Hello, this is Emily.
In the old computer, was Windows installed with the device? Meaning Windows came with the device? If so, you cannot transfer the product key to another computer. The only way to transfer a product key is when you purchased the license separately from the device.