Most modules allow you to set the APN using the AT+CGDCONT command, for example:
To get a list of the currently defined PDP Contexts, use the AT+CDGCONT? command. For example:
Note: Please check the manual from your module vendor for the exact AT command to use.