Towny creates fake players to store the balances of towns and nations, so that might not be possible. If someone else can confirm that, my suggestion would be to find a replacement that allows you to block usernames related to towny (anything with town_, towny_, etc).