I don't think the Duchess of Cornwall attended today. She hasn't been mentioned and she wasn't in the carriage with Prince Charles (he was sitting beside Prince Andrew)
As for Sophie and her strange hats, Ascot usually brings out the most bizzare headwear, she is probably on the tame side.