Couldn't you figure out the resonant frequency automatically by hitting the glass with a few impulses from the speaker and looking at the response? That'd be a fun signal processing exercise.
https://docs.scipy.org/doc/scipy/reference/generated/scipy.s...
I think this would work only if the system in question is reasonably linear though, which wine glass might not be (?)