There is no way for mIRC to detect if a server supports SSL. Often it's on port 6697 and/or 7000, but not always.
You will have to read the server's /motd to find out.