Job State

I need a program made in any language that can run a list of yahoo/hotmail emails to check there availability to see if there able to be created.
You can use the sign up pages on both sites to input the username to see if there available or not I need a list function on this to run lists of emails.
the format of these emails I will be running