Yes, you would use ${Me.Effect[detrimental,#] where # is the ID of the effect. This will, of course, require that your script utilizes a database or xml file to map ID#s to anything else you'd want to know (i.e., name, etc.) Or, if you're just coding a very specific thing and want to avoid specific abilities it might just be easier to hardcode in the few IDs that you need.
But yes, the only way effect information is stored in memory without a server call does not have the name, only the ID#.