Something like this?
#include <sstream>
#include <string>
...
string hello;
stringstream ss (stringstream::in | stringstream::out);
ss << window.GetInput().GetMouseX();
ss << " ";
ss << window.GetInput().GetMouseY();
hello = ss.str();
sf::Text text(hello);
text.SetPosition(250.f, 450.f);
text.SetColor(sf::Color(255, 255, 255, 170));
window.Draw(text);
...