Applescript to poll current network connection method

In Mac OS 10.1 through 10.2, is there an Applescript command or script that can be used to determine whether the user is connected via DHCP bs. PPPoE? (Or perhaps a grep of a unix call)