Identifying the existence of hwcomposer of Project Butter in Jelly Bean
On startup, check adb logcat for an init message that mentions the hwcomposer.

If you have a logcat viewer on your device (such as CatLog), you can use that, too.