Foamy histiocytes can be identified through histological techniques such as hematoxylin and eosin (H&E) staining, where they appear as large cells with clear, vacuolated cytoplasm. Special lipid stains, such as Oil Red O or Sudan Black, can also be used to confirm the presence of lipids within these cells.