It could vaporize a rock and identify its minerals from the spectrum of light they emitted, or drill a sample and tease apart its chemicalconstituents.
It is still unclear whether the hydrogen represents the release of water by the heat of the impact, or whether it simply sheds light on the way that water is formed on the Moon from its chemicalconstituents.