G-Code or Config for max or preferred hotend heatsink cooling speed?

I put a 40mm fan on my E3D which may be overkill, but it's quite loud at a max of 255. Can this be set to 150 in the config somehow so when the hotend reaches 50C (or the trigger temperature), it turns the fan on S150?