Try Karatzas and Shreve, exercise 3.36, page 167. You could expand the X in Hermite polynomials and then express the Hermite polynomial of M as a multiple stochastic integral using the aforementioned exercise.(caveat: I have never done this before, but this method sounds reasonable)