Infectious agents are detected and diagnosed through laboratory tests such as blood tests, urine tests, throat swabs, and imaging techniques. Techniques like PCR (Polymerase Chain Reaction) and culture methods are commonly used to identify specific pathogens, while serological tests can detect antibodies or antigens related to the infection.