Don't quote me on this, but I believe that you may be able to do it via a KVM switch - not the cheapy ones, but the more professional ones may have the functionality you're looking for.