If you just want to check that the hard drive can be accessed, assuming that it is an IDE hard drive, you can disconnect the IDE cable and power cable from your CD or DVD drive, check the jumper settings on the hard drive and connect it to the available IDE cable and power. If you are running Windows XP, the hard drive will appear in the Explorer window.
If you disconnect your own hard drive and boot from yor friend's hard drive, Windows will start installing new drivers, to make itself compatible with the chipset of your motherboard, if your friend's PC has a different chipset.
If your friend's PC has one or more viruses on the hard drive, you may be able to see their effect if you have booted from this hard drive but not otherwise, unless you run infected executable programs from your friend's hard drive.
If you have an anti-virus application in your PC, by connecting your friend's hard drive to your PC as a secondary drive you can scan his hard drive for viruses. Depending on the viruses found and what the cleaning operation involves, there is a chance that some of the Windows programs cannot be loaded afterwards, if your friend's hard drive was badly infected.
It is best to copy the important data like documents, mail folder and bookmarks, to your PC so that your friend can re-install Windows if required and copy the data back from your PC.