OK, I have my app stored on a network drive, and i'm continually making updates to it and having to recompile and overwrite the existing exe...

How do I tell if someone on the network has the app running? Because I get errors that I can't overwrite the exe if someone is using the program. Is there a way to get the computer name that the app is running on? maybe even the users name?