Hey Andrea -
Sorry for the delayed response. The Code for this check can be found in the ParticleModules_Location.cpp file beginning around ln. 1997 (you can also run a find search for SkelVertSurface in that file and you should find it that way as well.)
Thank You
Eric Ketchum