Microscopic modeling of the two-temperature model for conduction in heterogeneous media