Can I ping the modem when I have a connection established with the TCP/IP stack?

Yes, but you must be connected to an APN or server that provides a public IP address and is not blocked by a firewall.