BRCA mutations are detected through genetic testing, which involves analyzing a blood or saliva sample. The test looks for specific mutations in the BRCA1 and BRCA2 genes. Genetic counseling is often recommended before and after testing to help individuals understand the potential risks and benefits.