Prostate cancer can be detected through a prostate-specific antigen (PSA) blood test or a digital rectal exam (DRE). If these tests indicate the presence of cancer, a biopsy may be conducted to confirm the diagnosis.