There currently are a variety of options to travel by night train from Hamar (Norway) to Heimdal (Norway), taking between approximately 5 and 6 hours: Namely the 51, the 405 and the 80405. These lines are operated by SJ Nord.
SJ Nord is a subsidiary of the Swedish state railway SJ, operating passenger rail services in Norway.