Not sure about Tesla but the technology DOES exist and some cars do currently have it.
http://en.wikipedia.org/wiki/Driver_drowsiness_detection