Can I Use Arduino Libraries in STM-IDE?
Probably not, as Arduino libraries tend to target some oddities of the Arduino environment and its way of grouping things before feeding them to the C++ compiler (eg, even if you were using avr-gcc's g++, the build process for Arduino does some unusual things first)
You can however work through the source code of Arduino libraries and manually translate them into standard C++ conventions for file interaction (or with more effort, C), and make them use whatever backend I/O and support capabilities are available on your board.
There also exist Arduino BSP's for a number of STM32 MCU's which can be added as plug-ins to the Arduino IDE, or used with various other Arduino-capable build platforms like Platform-IO.  However sometimes these still require some library improvement - for example ATmega Arduino's have fixed SPI and I2C pins, but on most STM32's you have choices, which need to be communicated somehow.