https://www.scotrail.co.uk/about-scotra ... train-data
Didn't note the train number? Look it up on http://realtimetrains.co.uk/! Stock allocations are now shown for most ScotRail services (and GB Railfreight).
(Note: no connection other than as a user).