Foreign Source Income

There are stocks which have involved my paying tax to a foreign country. How do I determine the foreign source income from those dividends?