Detection of BRCA2 mutations is typically done through genetic testing. This involves analyzing DNA from a blood or saliva sample to look for specific mutations. Genetic counseling is recommended both before and after testing to help individuals understand the implications of the test results.