Trackmaps has started an online version, currently just with Volume 1 (Scotland) - download £7.
Assuming this is an e-version of the printed book, each line has its previous ownership shown back to pre-grouping.
Book 1 Scotland & IoM Edited by Martyn Brailsford
ebooks.trackmaps.co.uk
You can always buy the printed versions of the other volumes (about £15 each).
I can't remember if the single-volume Trackatlas includes the line history or not.
Otherwise, the printed Ian Allan Pre-grouping Atlas is a handy colour-coded guide to railway ownership before grouping into the Big 4 on 1 Jan 1923.