Windows File Locks

Hello,

I'm looking for a solution to get the specific user who has a file locked in windows. In a UNIX server environment we're using the C$LOCKPID to get the process Id, and finding the username that way, how do I go about this in a thin client windows environment?

Thanks