The Integrated Public Alert and Warning System (IPAWS) is the system used to disseminate alerts to the various emergency management agencies throughout the country, and then broadcast to the public in the areas affected by the alert or warning. Local authorities can also send notifications through this system.
This FEMA video does a good job of explaining how the system works.