Alas, there is no standard response for an SMTP server HELO reply, so you can't easily parse it.