You can't just take a boot drive from one computer, put in another and expect it to boot.
There are several BIOS settings that need to be matched between the systems -
sata controller mode (ahci/ide/raid) + boot mode (uefi or legacy/csm).
And even then it's not guaranteed to boot into OS (because of difference between required drivers in those systems).
So - if you want to use your SSD as a boot drive on another system, you'll have to reinstall windows.