Virtual switch

The arduino does not have isolated pins that allow you to connect external signals together.
Without knowing what the two wires have on them for voltage and how much current flows when connected, the best you can do is an external part to keep from blowing out the arduino.
Do you have a multimeter? Can you make some measurements on the pins? Is there a ground that the arduino ground can connect to?