This information can be gotten despite how the constraint is named this way:
SELECT Table_name, constraint_name
FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS
WHERE constraint_type = 'PRIMARY KEY'
then you can use the table_name and constraint_name to do what you wish.
Toni