You may use sound detection - when you direct on the glass a pulse of a sound, you will receive 2 (and even more) responces - first (big) from the surface and all other shifted in time T=S/V, where S - thickness, and V - speed of sound inside of glass. And you can take such an info from the...