The Microsoft Process Explorer is an excellent tool to tell us which files and/or folders on a system are being used by each individual active process. If you need to delete or rename a locked file or folder, use the Find menu and put the file/folder name into its single item, and you’ll have what you need.
http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx