Do they need to use the same Components, or do you just want to "talk" to each other?
If you don't need Access to the Components just place a Switch between the Computers!
Otherwise you can use this:
component.setPrimary("keyboard", "<-The Address of the keyboard->")
component.setPrimary("screen", "<-The Address of the screen->")
you can get the Address's by CTRL+RMB with the Analyzer and past it in with the MMB.