There is a property called 'IsRunning' on the session object that can be used to check if the current session is active.
Note: However, this will work only if you are not clearing the work space or deleting the previous session object before 'Start' button click.
Here are a couple of other ways to achieve it.
1) Have a Stop button that will call a callback function which releases the current session by calling 'release' on the session object. Refer to the below link for more information on the 'release' function.
So, everytime click the 'Start' button after clicking 'Stop' button.
2) Calling 'daqreset' before creating the session in 'Start' button handler will make sure that all the current sessions are released.