These are normally stored in global preferences but instead of working out the udid of the mac and naming the preference you can use
/usr/bin/defaults -currentHost write com.apple.screensaver idleTime 0
The -currentHost setting does the work for you