I believe L. H. M. stood for Light Horse Man. This was a rank of light-armed soldier.
There are numerous references to this rank in _Chelsea Hospital and its Traditions_ (1838).
Just for your interest – a light horseman of that era would have looked something like this 1791 sketch (source British Museum):
. This could help determine whether this is likely correct or not.