The easiest way to check to see if a medication can affect your ability to drive is by reading the medication's information sheet.
You can also consult the doctor or pharmacist who gave you the medication to find out if your ability to drive can be affected in a negative way.