I want to know whether the component latest version is published or not in a specific publication target.
Could you please help me in placing the correct API call.
SDL Tridion publishing is (currently) not version based, which means that at the time an item is published, its latest (checked in) version is used when the item is rendered. The actual version number the item had that that time is not stored on the CM side, so there also is no direct way of retrieving that via the TOM.NET API.
What you could do is write some code which checks the version history of the item, and through that determine what version was possibly published. I deliberately say possibly, since if there are items removed from history, you might not get a correct result back.
As Frank was smart enough to comment, indeed the version of each published item is actually sent along to the Content Delivery side and stored in the Broker storage (in the
So you could revert to checking the Content Delivery API, to see if you can determine the version information from there. I didn't bother checking what APIs are available for you on that side ;o)