You'll need a DDE connection to check if more mIRCs are running.
mIRC Options > Other > button DDE > Enable DDE server checked, and give it a name.
or command line: /ddeserver on mIRC
You just have to check if $dde(mIRC, connected) returns a value.
Hope this wll help