If the hard drive contains the windows boot partition then you can't normally just switch the drive into another machine - you will need to remove the drivers first using sysprep. This is because the new computer has different hardware in it and when you plug in the hard drive from the other computer windows will start up expecting to see certain hardware and when it doesn't find it this probably caused your bluescreen.