Heyyo, depends if it was the hard drive that is dead or not. Usually hard drive with Windows operating systems don't swap too good to different computers. Your best bet anyways it to use it as a secondary hard drive and then copy the data off of it.
You could try a USB external enclosure but tbh I've had better luck copying data off of a secondary drive that is plugged right into the motherboard.
If you run into an issue where your user account is locked due to windows login password? This is how to retake ownership. Same steps on any windows version tbh minus Windows XP Home which required doing it from safe mode