Let's just be grateful it wasn't ice-IX they found.
For those who need context: https://www.goodreads.com/book/show/135479.Cat_s_Cradle
For others, this isn't the Vonnegut Ice nine.
edit to add: http://www1.lsbu.ac.uk/water/water_vibrational_spectrum.html
However, I suppose it could also be X-ray crystallography, which would measure the actual crystal structure. Probably other methods as well...
>But while they were scanning the diamonds with high intensity X-rays, they saw something else: The first conclusive evidence of ice-VII on the planet.
But probably they used other methods to confirm.