There isn’t a built-in way to do this, but you can grab the page title via the following:
from streamlit_javascript import st_javascript
import streamlit as st
url = st_javascript("await fetch('').then(r => window.parent.location.href)")
st.write(url.rsplit('/',1)[1])