Sleep apnea is typically diagnosed through a sleep study, which involves monitoring the individual's breathing and other bodily functions during sleep. However, due to the risks associated with sleep studies during pregnancy, doctors may use alternative methods to diagnose sleep apnea, such as home sleep tests or daytime sleepiness assessments.