Copying files across a Network Files Help!!

I am writing an application (Delphi 1) that will copy and rename a file
that gets updated periodically during the day.  How can I detect if this
file is being updated before I try to copy it.  Sort of like record
locking before updates, I guess.  I don't have very much experience
working across networks.

Thanks in Advance

Larry Rice