As Dorbie said, if you are using ARB_depth_texture, you need only use CopyTex(Sub)Image2D with a format of DEPTH_COMPONENT.
If you are not using this extension and want depth data in a simple 8-bit luminance texture, then you need to do ReadPixels with a format of DEPTH_COMPONENT, and then Tex(Sub)Image.