Use the "-datadir" command line option:
namecoind -datadir=/foo/bar/baz/somewhere
Make sure the wallet,dat and namecoin.conf are in that directory. If that directory is located on an encrypted drive it'll be encrypted. Any command you run though can access it since it's unencyrpted while you're logged on. But at least if your machine gets stolen it is safe assuming the encryption is solid.