Question: how to connect two all in one computers?
Answer: First you'll need a USB Video Adapter (available in VGA, HDMI, and DisplayPort outputs).
Connect your computer to the USB Video Adapter.
Depending on the inputs available on your second monitor, connect it to the USB to Video Adapter with a VGA, HDMI or DisplayPort cable.