IsModLoaded
From The Elder Scrolls Construction Set Wiki
A command for Oblivion Script Extender
Syntax:
(isLoaded:bool) IsModLoaded modName:string
Returns 1 if the specified .esp or .esm is currently loaded. String is case-insensitive but must include the file extension.

