There is a device called a thermometer for that...
Sedimentary rocks form by breaking down other kinds of rocks into small particles and washing or blowing them away; metamorphic rocks form from other rocks and igneous rocks form by melting other rocks. Thus rocks are always changing form and are redistributted as part of a giant cycle of renewal.