depth buffer values

is there any general formula or rule of thumb that enables me to calculate the depth buffer value of a point if i know its transformed coordinates?

why do i need this? since my card has not got a stencil buffer, i must use this rough check to see if a point i want to draw has been actually drawn or is obscured by another object :frowning: