If you prefer a custom template function instead of a stored template, this does the job. Use Preferences / Template functions / the Template Functions tab.
The function code:
Code:
def evaluate(self, formatter, kwargs, mi, locals,):
from calibre.gui2.ui import get_gui
db = get_gui().library_view.model().db
ans = db.new_api.has_conversion_options((mi.id,))
return 'Yes' if ans else ''