The N64 uses 2 processors, the main MIPS CPU and a co-processor. The gDPSetRenderMode command is a co-processor 'microcommand' and those didn't change too much throughout the lifespan of the N64. The way that you would control the co-processor is by sending it lists of microcommands which would set various modes, create vertices etc.
Anyway, there weren't too many microcode versions. There was one called F3DEX for which the gDPSetRender mode command is 0xB900031D followed by another 32-bit value indicating the settings - this version of microcode was used in e.g. Super Mario 64. Later games, e.g. the Zelda games, used F3DEX2, for which the same microcommand was represented by 0xE200001C, again followed by a 32-bit value indicating the desired mode.
There are a bunch of constants that define the possible values for the 32-bit mode, but it looks like AA is bit 3. From the SDK:
#define AA_EN 0x8
The reason there were so many of these commands is not due to redundancy though. It is because each object that is drawn on screen may have its own particular render settings, which would need to be set before drawing of that object started.
Patching the display list gDPSetRenderMode commands in the ROM to disable AA may be able to get rid of internal AA, but it won't disable external AA. External AA was controlled by OS functions (osViSetMode and osViSetSpecialFeatures) which, as you mentioned, changed a lot during the N64 lifespan. However, in each version of the OS, these functions *should* ultimately reduce to a single point where the 0xA4400000 register is modified with the new settings, so we may not necessarily need to identify the osVI* functions and patch them. We would just need to find that one instruction that changes the settings and patch it.
One more thing though - some games (e.g. Ocarina of Time) did some compression. If the library calls that change the settings are compressed, patching becomes more complicated, and it makes a general solution that can patch all ROMs impossible.