detecting if touch screen.

how would you detect if the device has a touch screen ? is there a touch screen api or sdk ? do all wireless phones have touch screen capabilities ? i understand that it is like programming for meeces .
is there a standard or is it every device has its own system of routines ?