As has been suggested, if there's no fault with the hard drive itself it's a very easy job to remove it from the defective machine and slot it into an external drive enclosure.
When looking for something suitable, make sure that you get a 3.5" enclosure (rather than a 2.5" one, as they're for laptop drives) and that it's for the right type of hard drive. (Most modern drives are 'SATA' but you can check what type of drive you've got simply by googling for its specification). Something like this might be suitable:
https://www.novatech.co.uk/products/novatech-3-5-inch-sata-hard-drive-enclosure-v2-usb-3-0-black/nov-7688u3.html
Once you've installed the drive into the enclosure you can access the data on it just as if you were using a USB memory stick. However you might initially find that you can't see all of the files and folders on it; that's because you've not yet 'taken ownership' of the drive. This document explains how to do that. (It's written for Windows 7 but it's much the same across all versions of Windows):
http://preyerplanning.com/take-ownership-of-entire-hard-drive-in-windows-7.pdf
I've recovered data from loads of defunct computers by inserting the drives into an external enclosure and then taking ownership of them. It's really easy to do. (The only problem I've ever faced is actually getting at the drive inside any computer made by Dell. They seem determined to make getting inside their machines as hard as possible!)