Should be doable with a script or an action, but as per your description it is not quite clear if you are trying to replace the colours with always the same colour combinations. Or if the colours may vary often in different files.
Can you clarify and can you perhaps share at least two or three sample Illustrator files with further instructions?