There are no hostels in Collado Villalba but there are other types of accommodations...

"Bed and Breakfast in a double room in a typical Spanish village 30 mins by car from Madrid
The flat is in Collado Villalba, a stroll away from a number of good restaurants and tapas bars and train station, in a quite and typical Spanish village at 917 metres, 40 mins by train from Madrid, in the famous Sierra of Guadarrama, 15 mins by train from the famous Monastery of San Lorenzo El Escorial, 20 mins by car from the sky resort of Navacerrada, 30 mins from Segovia, 45 from Toledo y Avila.
...