How to detect if the tablet has styles or a touch screen? [on hold]

I am developing a signature application for which I need to know if the connected tablet is equipped with a stylus, a touch screen or both.