B cells can be identified using various immunohistochemical techniques. Specific markers such as CD19, CD20, and CD79a are commonly used to stain B cells in tissue sections. These markers are proteins expressed on the surface of B cells and can be targeted by specific antibodies conjugated to fluorophores or enzymes.