Many auto parts stores, including AutoZone, will check engine trouble codes. (You can also do this yourself if you have an OBD-II code reader.) If there is a "check engine" light on the dashboard, chances are that one or more codes will show up and point you in the direction of the problem.
Good luck!