you have use static variable ‘Event.current’ to whether ‘isMouse’ property is true and then check for ‘button’ property to check witch mouse button is down. also you have to know rectangle of your button and check whether mousePosition is inside rectangle of button.
something like this :
// assume this is area of your button
Rect buttonArea = new Rect(5,5,100,30);
Event e = Event.current;
if(e != null)
{
if(e.isMouse && e.button == 0 && buttonArea.Contains(e.mousePosition))
{
// then left mouse button is down
}
}