As others have stated, you cant just take windows from one computer and move it to another
The drive not booting could be because 1 of 2 reasons
1) The hardware difference is too big, the OS installed on that drive was setup for the hardware of that computer, if the hardware is too different then it will either boot but be unstable or not boot at all
2) The drive works in the other Win10 pc because that one is set to GPT and UEFI bios like the dead computer was, if the other PCs you tried it in are set to mbr or legacy bios then this result in not booting.
Either way you still cant just move the hard drive.
Now Microsoft will allow to move windows to a different motherboard IF you already had that copy linked to a microosft...