This is a question that you ask when you you want to talk to someone for a few minutes. This phrase is used to ask the person if it's OK to talk to them for that long. You use it when a person seems busy.
"Moment" is formal. A less formal way to say this is "Do you have a minute?"