I think that, instead of me trying to write the history of the train used in the Harry Potter films, that I'll let Paul Race from the 'Big Indoor Trains' website provide more details on the history and whereabouts of the various Hogwarts Express trains out there. Suffice it to say, the film makers were able to acquire and use a working Hall Class locomotive for shooting and there are also replicas that run on Universal Studios properties.
Ed
The Screen Used Engine
Incorrect A1/A3 class 2-6-2
From Lionel Set #7-1198 Battery Operated Hogwarts Express
Hall Class 4-6-0 Ten Wheeler
Found in Lionel's LionChief Train Sets. This is the train I opted to use for my holiday train layout. The LEGO version being blogged is displayed on a shelf.
LEGO's 4-6-0 Hogwarts Express Engine
Pretty good for being a LEGO. The driver (engineer) figure included in the set does not fit inside the cab of the locomotive, so these photos show him standing on the floorplate of the tender.