ArcGIS does this out of the box. In ArcToolbox, navigate to Analysis > Proximity > Near. This tool determines the distance from each feature in the input features to the nearest feature in the near features, within the search radius.
http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00080000001q000000.htm
Regards,
Eric