Determining If Relays Are Working, Programmatically

What voltage is on the contacts ? Doing analog comparisons using current limiting resistors and analog switches or op amp comparators is possible but why would you want to go to the trouble ? (what makes you so cautious ?)