If you really want to test hardware, you will need a hardware tool for it.
If you really want to use software for it, have a look at: http://www.computerhope.com/issues/ch001088.htm