Before Returning Your Current Cable Modem
Before removing your old modem/router, follow the instructions [here] to determine your WiFi network name and password. Write this information down so you can refer to it later.
After Receiving Your New Cable Modem
After the new modem is installed, use the instructions [here] to enter your WiFi network name and password that was used previously. Your devices should now be able to connect the same as before.