In order to get the current project you will need to add the project scope "vso.project" to the manifest of the extension.
const webContext = await SDK.getWebContext();
const projectName = webContext.project?.name; // Current project name