S100 protein can be detected in tissue samples using immunohistochemistry (IHC). This involves the use of specific antibodies that bind to S100 proteins, which can then be visualized using various staining methods. The stained tissues can be examined under a microscope to determine the presence and distribution of S100 protein.