In general by reading what nips they implement. And for example in Amethyst android client, you can activate private messages down left with an inkognito man. When the other person does not use a client with NIP-17 implemented, she will not be able to read the message.