Configuration profile for managing multi monitor display
The best I've been able to find that does this is SwitchResX, To get what you're asking for, I believe you would set up a display set for your home and work environment. SwitchResX also advertises that it can be controlled via AppleScript.