you can do it with simple math. First you have to convert your coordinates to pure degrees:
For example, latitude 15 deg 40 min 30 sec will be:
15+40/60+30/3600 = 15.675 degrees
so, you need 2 coordinate pairs, in pure degrees. To calculate "distance to origin", just apply phytagoras:
dd = sqrt((lat - lat0)^2 + (long - long0)^2)
the distance is expressed in degrees, to convert to meters:
dm = d * 60 * 1852