No. Julie Andrews did not voice any character in Shrek the Third (2007).
She voiced Queen Lillian (Fiona's mother) in the first two sequels:
The character does not appear in the third film — hence no Andrews.