How to ouput a stencil buffer?

we can output depth buffer,so, How to ouput a stencil buffer?