I found them all in the AI script help file. Read below the sample script (which is very long). You'll see a list of tech IDs, unit IDs, unit stance IDs, tech status IDs, etc - very useful. I must warn you though that for some tech IDs, especially the ones at the bottom of the list, you have to subtract 1 from the number given there for some reason. I don't know exactly which ones; if a tech doesn't seem to be researched, try subtracting 1 from the ID.