The equation for Stirling's Approximation is the following:
$$x! = \sqrt{2\pi x} * (\frac{x}{e})^x$$
Writing as a function for y gives us the following:
$$y = \sqrt{2\pi x} * (\frac{x}{e})^x$$
Is there a way to solve this equation for x, effectively finding an inverse to this function?
Instead of the inverse to Stirling's approximation, you can (and should) consicder the inverse to the Gamma function itself. See this MathOverflow discussion.