Modify AppleHDA.kext to not recognize Internal Speakers, but still recognize headphone jack?

I'm a teacher with a Mac lab. I would like my students to be able to use their headphones but not the internal speakers. My coding ability is limited. Please help?