The depth buffer will be rendered into a render buffer, the color buffer into a FBO. You can write, just like it happens when you set a texture as shadow map, the depth values into the color buffer, but you can't access the actual render buffer (by design of a render buffer). However, i'm not sure if i really get what you want to do...