They've actually found that you can diagnose autism in even younger children e.g under a year. Way before vaccines are given. However such screening has not yet become widespread.
Some vaccines are given at birth at many others by two months and still others at 4 months (in the US). I am not aware of any test that can work that early.
I think an AI program could help screen here.