Probing ISM conditions of distant galaxies through dust emission: simulation and observation