In conjunction with a KVM for switching the USB between devices, you can use this software to automatically swap the inputs on the monitor (if your monitors support the command protocol, most do but one of mine doesn't support the "change input" instruction):
https://github.com/haimgel/display-switchOtherwise you'd need a KVM that supports 3 monitors which I'd imagine is a compatibility nightmare if they're beyond 1080p@60hz