You can buy test kits, which either provide a growing medium and you'll see if airborne spores cause something to grow, which you then can get tested for what it is exactly, or let you take air samples that you mail to a lab.
Ideally you’d do air sampling over a period of weeks, multiple times across the entire year. Reliable testing is hundreds of dollars. No, those little test kits don’t count.