I work in the creative field and have a lot of friends that work in the creative field, like games, comics and film. So I have a zero tolerance policy for pirated material at my table.........
Now, if you don't want players using pirated stuff at your table, just have their character constantly get robbed by pirates. They get hijacked or wake up with stuff stolen after a rest. If they complain, just tell them that the kingdom they're in doesn't really do anything about piracy as it's not really hurting anyone.