Ask the server to list the indices for the table. If the primary key is included in that list, then it's highly likely that the primary key is an index with a unique constraint. This is so in MySQL, for instance.

Wade.