Yes, I would suggest you to try the method below in order to get the current spark context settings.
SparkConf.getAll()
as accessed by
SparkContext.sc._conf
Another method specifically for Spark 2.1+
spark.sparkContext.getConf().getAll()
where spark is your sparksession (gives you a dict with all configured settings)