You could use the API e.g. getTokenIdMetadata to find the owner_of address of a particular NFT and only allow access based on this ownership.
If you mean owner of the contract, you could call the owner
function on the contract to get the owner address.