You can find a specific commodity by using the searching options within the cargo window. Scroll down to the nearby section and a group labelled commodities allows you to filter within a 1,000 LY radius for a commodity by name.
The search will only show commodities on planets your faction have discovered.
If you are in a system you can see a list of all commodities by interacting with the system commodities group within the cargo window as well.