How to find out if a ship or port is ISPS compliant?

A ship that is compliant should have an International Ship Security Certificate (ISSC). 
The “ISPS Code Database”, which forms an integral part of the Organization’s Global Integrated Shipping Information System (GISIS), contains the information required by SOLAS regulation XI-2/13 as supplied by Contracting Governments, including national maritime security contact points. The ISPS Code database has a section listing ports including whether or not they have an approved port facility security plan (PFSP).