The C3a train departs from Atocha and stops also at Chamartin station before heading to El Escorial. The journey takes just over an hour.

Source: https://www.redtransporte.com
To get to the Real Centro Universitario El Escorial María Critina from the train station, you can take a taxi or walk up the hill (approximately 2 km).