You actually can connect a Steam Deck to another PC. Look for the DeckMTP plugin on Decky Loader.
MTP is the thing Android uses when you connect your phone to a PC. It should be possible to install on any PC. Don't know about Windows but there's probably a solution for that as well.
Don't know what happens when both devices have it. I'd suspect that they would both be able to access each other's drive.