At home my external monitor is above my laptop. At the office it is to the right (well, to be fair, it's Ayja's monitor, but she is having a blast in San Antonio, soooo …). Who can fill me in on the technical bits where Windows knows the difference and remembers their positions? This is a rabbit hole I am willing to jump down!
I would assume it saves the screen serial number and the orientation/location you set for it last time you configured. Serial can be obtained through the EDID protocol en.m.wikipedia.org/wiki/Extended_D...