It definitely is possible with the GBA games if you get the "Visual Boy Advance linker" emulator. I assume the DS emulators do the same.
You will need to run two emulators side-by-side and load a different game in each, then they should be able to connect.
If that doesn't work then go out and buy the real games, they're much better.