dhtmlxtree checkbox

How can I know If a tree node has a checkbox?

You can get state of checkbox by
var state = tree.isItemChecked(id);

If you are using showItemCheckbox functionality and need to check is checkbox present or not, you can try to use
tree._idpull[id].nocheckbox