You won't be able to transfer a Windows key from Enterprise version to Pro version. You would need a new Win10 Pro key. You probably wouldn't be able to remove it from the domain without credentials for an account that is authorized to do so. Depending on their IT setup.
Just manually backup data to an external, create a Windows USB installer, erase the drive, and install Windows fresh. Either buy a cheap Windows key online somewhere, or just use it as is. Windows doesn't actually need to be activated to work. It is completely functional in an inactivated state, the only single limitation is an inability to set personal background image. You could also hack it with a Windows KMS app if you're feeling Y'arrrrrr.
I would also recommend Win11 over Win10. No reason to stick with 10 at this point.
__________________
|