You can pull the bulbs for a visual inspection or take a headlight out and check the voltage at the connector, but my guess would be the switch
Check the bulbs and maybe even the voltage at the connector, and if all looks good, you probably need a new switch.