I think it can.
I don't know the specifics, but the DDE package for Tcl on windows, provides a method of obtaining the currently running DDE servers.
I started using Tcl to make external mIRC interfacing aplications, but gave up when I found that Tcl for windows is crash prone like most other ports using cygwin.
However, at the time, I was able to run 15 copies of mIRC. Each one called a external Tcl application, to find out what DDE name it should use. Tcl would look at the currebntly looking servers, and pick a name and return it. From then on, Tcl could mass address a list of mIRC servers.
The Tcl isn't needed anymore, seeing as mIRC now has native multi-server support.