Hi, I am brazilian, sorry bad english.
It is imposible. You can use curl or fopen to see at gmail the disponibility of one username, but there are many services and sites of email.
The most usual way is send a confirmation email with a link to activate the account, like this forum. =]