In Python, the sys module has System-specific parameters and functions. This module provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter. It is always available. In your case, you just need to do the following thing -
import sys
print(sys.executable)