Use Process Explorer program to close any opened handled to the HDD.Once they are closed,you can remove it safely.
By the way if you configure Process Explorer the wrong way,it can happen that it crashes at every startup.So if that happens to you,let me know since I made a small fix for that few days ago.
Cheers!