Try copying and pasting this into AppleScript Editor and see if that does what you want (changing myExchangeServer to what you want to set it to):
property myExchangeServer : "my Exchange Server"
tell application "System Events"
tell application "Microsoft Entourage"
activate
repeat with anAccount in every Exchange account
set ExchangeServer to myExchangeServer
end repeat
end tell
end tell