This should be possible with PHP if the mail account is POP and you have the username and password available to the script.
I would use the fsockopen function as follows:
<?php
$user = "bob";
$passwd = "f74HF4";
$fp = fsockopen( "pop.popserver.com", 110, $errno, $errdesc);
if (! $fp )
die ("Error making the connection");
fputs( $fp, "user $user");
fputs( $fp, "pass $passwd");
//etc
//etc
?>
That should let you make the connection and send any standerd pop request. "fgets" can be used to read the server response.
Neil