First you can create a new directory, then to change the system setting:
defaults write com.apple.screencapture location /path/to/screenshots/
Finally to make the change immediately available:
killall SystemUIServer
The picture below is an example.