You need to use the HDD Makers Testing Utility so the HDD will be made by Seagate, Western Digital, Samsung, Fujitsu and so on.
The Link that I provided above was for the HDD Makers Testing Utilities and you just need to click on the HDD Makers Name and that will start the Download.
If you do not know who made the HDD you can either open the case and read the Makers Name off the sticker on the HDD.
But being a EMachine I would also be looking at the Power Supply as a Possible Point of Failure.
Just because LED's may light up or Fans run doesn't mean that the PS is actually fully functional it just means that there is sufficient current on that Voltage Rail to provide sufficient power to run whatever is working. So int he Case of the Fan running that means that one of the 12 V Rails has sufficient power to start & run the Fan but not that there is sufficient current to run the rest of the computer. It also doesn't mean that there is any power available on the CPU or Memory Rails or if there is power there may not be sufficient current to run the system. EMachines are known to have weak Power Supplies so that is always the starting point when it comes to those machines.
Col