For a single coordinate set, either COOR DIST (corman.doc) or the QUICK command (miscom.doc) would work.

For a time series of the distance from a simulation, the DISTance time series (correl.doc) is probably the best choice.

The key is often figuring how to identify the atoms, i.e. what is the syntax implied by atom-spec
Rick Venable
computational chemist