how to use depth buffer to blend two meshes

I have two meshes, and I want to blend them. My blending function will be based on the two depth buffers that are formed when I render these meshes. I want to blend them in the video card so that I do not have to loose time with I/O between main memory and buffers in the video card. Does anyone have any idea how to do this?
-D