I don't know exactly what bus will take you from Guanajuato to Pachuca, but just ask in the "central de autobuses" for a bus to Pachuca, Hidalgo, there are going to be plenty because both states are really close. I would imagine you would have to pass through Queretaro.