You can use the is_contrained method from the constrained triangulation.
if (cdt.is_constrained(e)) ...
If you can have dandling edges, you must first mark the domain like in the following example and check that the edge is incident to two faces that have different nesting_level
.