Hello,
Being "digital" alone doesn't determine if the license is transferrable. It is simply a format of the license, not the license type.
In order to determine if your license is transferrable, and/or how to transfer, I need to know:
How did you obtain your license initially?
Did it come with the device preinstalled, or did you purchase it?
If you purchased it, did you purchase from Microsoft, or from third party?
Is it originally a Win7/8 key?
Is it currently on Win10, or 11?