A Calder\'on type inverse problem for quantum trees