Diagnosis of NSCLC through histology involves examining a lung tissue biopsy under a microscope. Techniques such as hematoxylin and eosin staining are commonly used to differentiate between the subtypes. Immunohistochemistry (IHC) can also aid in diagnosis by using specific markers like TTF-1 for adenocarcinoma and p40 for squamous cell carcinoma.