You can assign the texture with the rendered depth buffer to another object and do something with it in the shader. That said, jPCT's shadow mapper doesn't do this but it's encoding the depth values in the actual pixel data for reasons that I can't remember anymore. Some compatibility issues, I guess...