How to determine if my computer is installed on spark?

How to determine if my computer is installed on spark when I submit a button?

Thanks.