Reading the value of an object

How do I read the current value of an element?
E.g. when clicking on a button (Button1) I need to know the current value to which the slider is set (Slider1). Is it even possible? Thanks.

Welcome to the community @Frantisek_Vopicka. Yes it is possible