average position of molecules

I have a system consisting of a large number of water molecules on a graphite surface. I wish to calculate the contact angle.The water drop forms an approximate hemisphere on the surface. I want the average position of the peripheral molecules over a period of time(say last 100ps). How can this be done?