Yes you can, by sending and receiving information to and from the com port on which the modem is connected. Initially, you will send commands and receive replies from the modem. Then, once a connection has been set up, you send and receive bytes. The commands and replies sent are called "AT commands". See for instance: http://www.modemhelp.net/basicatcommand.shtml