detect AC voltage

should probably mention I want to do this on the cheap. I know there are some neato 5V power supply modules out there, that'd be cool beans but they're like $20 each and I need 4. Too much. Thanks again.