mIRC gets $network info from numerics 001 ("Welcome to the [network] IRC network...") and 005 (".... NETWORK=[network] are available on this server"). Both you get upon connecting (and sometimes after using /version).
There are not many daemons not sending this, the only one i know of is IRCnet's IRCd.
It can be easily coded in, if you know C :tongue: