Two hours will be tight, because International Arrivals are in Terminal 5 and CO gates are in Terminal 2. There is a train that will connect you between the terminals. T
hat said, wait times at Terminal 2 security vary, but are rarely more than 10 minutes or so. The walk to the CO gates (usually E4, E6, or E12) once through TSA is not very far.