In general, that standard field sobriety test (walk in a straight line, stand on one foot, touch your nose, horizontal gaze nystagmus test) is used to gauge that kind of impairment. There are some companies that are working on automating the SFST, especially the horizontal gaze nystagmus test, but it is actually really difficult to build a device that is easy and portable but is also as accurate as a police officer.